package com.youbff.task.core.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="redis")
public class RedisYml {

    private Integer maxIdle;
    private Integer maxWaitMillis;
    private String hostName;
    private Integer port;
    private String password;
    public Integer getMaxIdle() {
        return maxIdle;
    }
    public void setMaxIdle(Integer maxIdle) {
        this.maxIdle = maxIdle;
    }
    public Integer getMaxWaitMillis() {
        return maxWaitMillis;
    }
    public void setMaxWaitMillis(Integer maxWaitMillis) {
        this.maxWaitMillis = maxWaitMillis;
    }
    public String getHostName() {
        return hostName;
    }
    public void setHostName(String hostName) {
        this.hostName = hostName;
    }
    public Integer getPort() {
        return port;
    }
    public void setPort(Integer port) {
        this.port = port;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    @Override
    public String toString() {
        return "RedisYml [maxIdle=" + maxIdle + ", maxWaitMillis="
                + maxWaitMillis + ", hostName=" + hostName + ", port=" + port
                + ", password=" + password + "]";
    }
    
}
